﻿namespace MyWebApp.Common.Entity
{
    using System;
    using System.Collections.Generic;
    using System.Linq;
    using System.Text;

    /// <summary>
    /// 此处填写 Constant 功能描述
    /// </summary>
    public static class Constant
    {
        public static readonly string LogType = "LogType";
        public static readonly int ExcelMaxRow = 65536;

        public static readonly string CurrentSessionId = "SessionId";
        //当前系统用户
        public static readonly string CurrentUserName = "CurrentUserName";
        public static readonly string CurrentUser = "CurrentUser";
        public static readonly string CurrentModuleID = "CurrentModuleID";
        public static readonly string CurrentPageSourceID = "CurrentPageSourceID";
        public static readonly string CurrentUserCredentials = "CurrentUserCredentials";
        //Cookie
        public static readonly string CookieUser = "cu";
        //模块信息
        public static readonly string ModulesParentID = "0";
        public static readonly string ModulesParentName = "系统根节点";
        public static readonly string DeptParentID = "0";
        public static readonly string DeptParentName = "部门根节点";
        public static readonly string MultiChar = "->";

        public static readonly string SysAdminRoleId = "administrator";

        //下拉框类型
        public static readonly string DDLType_Resource = "Resource";//资源
        public static readonly string DDLType_Dept = "Dept";//部门列表
        public static readonly string DDLType_City = "City";//部门列表
        public static readonly string DDLType_Role = "Role";//角色列表
        public static readonly string DDLType_UserGroup = "UserGroup";//用户组列表
        public static readonly string DDLType_UserDept = "UserDept";//用户有权限的部门

        //用户下拉框类型
        public static readonly string UserInfo_ID = "UserCode";
        public static readonly string UserInfo_Name = "Name";

        //缓存类型
        public static readonly string CacheKey_DeptOrg = "CH_DeptOrg";
        public static readonly string CacheKey_Dept = "CH_Dept";
        public static readonly string CacheKey_DeptTree = "CH_DeptTree";
        public static readonly string CacheKey_DDType = "CH_DDType";
        public static readonly string CacheKey_DDDetail = "CH_DDDetail";
        public static readonly string CacheKey_City = "CH_City";
        public static readonly string CacheKey_Resource = "CH_Resource";
        

        public static readonly string CacheKey_Role = "CH_Role";
        public static readonly string CacheKey_RoleDetail = "CH_R";
        public static readonly string CacheKey_UserGroup = "CH_UserGroup";
        public static readonly string CacheKey_UserGroupDetail = "CH_UG";
    }
}
